package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;

import com.aijk.ehm.model.EhmResident;
import com.aijk.ehm.model.dto.EhmResidentDto;
import com.aijk.ehm.model.qo.EhmResidentQo;
import com.aijk.ehm.model.vo.EhmResidentVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EhmResidentApi {
    Long save(EhmResident bean) throws ErrorCodeException;

    int update(EhmResident bean) throws ErrorCodeException;

    EhmResidentVo findOne(Long id) throws ErrorCodeException;

    List<EhmResidentVo> list(EhmResidentQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(EhmResidentQo qo);

    int updateDeptName(EhmResident bean ,EhmResidentQo qo ) throws ErrorCodeException;

    PageInfo<EhmResidentVo> page(EhmResidentQo qo);
}